package com.tedu.bill.demo1;

/**
 * Author：毕龙
 * Date: 2024/4/21 9:15
 */
//Class 'Dog' must either be declared abstract or implement abstract method 'm1()' in 'Animal'
public class Dog extends Animal{

    @Override
    void m1() {
        System.out.println("方法m1实现");
    }
    //重写的方法访问修饰符相同或者更宽
    public void m2(){
        System.out.println("方法m2实现");
    }
}
